package org.xtown.bingluo.xtieba.sync;

public class SyncTaskInfo {

	public enum Command {  
		C4BT("Crawl4BaiduTieba");  
	  
		/**定义枚举类型自己的属性**/  
		private final String shell;  
		   
		private Command(String shell) {  
		     this.shell = shell;  
		}  
		  
		/**定义枚举类型自己的方法**/  
		
		public static void printShell(int i){  
		     switch(i){  
		     case 1: System.out.println(Command.C4BT); break;  
		     default:System.out.println("wrong number!");  
		     }  
		}  
		   
		public String getShell() {  
		     return shell;  
		}  
	}  
	
	private Command shell;
	private Object data;

	public SyncTaskInfo(Object data, Command shell) {
		this.setData(data);
		this.setShell(shell);
	}

	public void setShell(Command shell) {
		this.shell = shell;
	}

	public Command getShell() {
		return shell;
	}

	public void setData(Object data) {
		this.data = data;
	}

	public Object getData() {
		return data;
	}

	public static SyncTaskInfo createSyncTaskInfo(Object data, Command shell) {
		return new SyncTaskInfo(data, shell);
	}
	
}
